/*
 * mapChangeTest.c
 *
 * This tests to see if I can change a map using chars
 *
 *  Created on: Dec 15, 2011
 *      Author: Jonathan Marokhovsky
 */
#include "game.h"
#include <stdio.h>

int main()
{
	int i;
	char b[] = "fuck you";
	char *a = b;
	Point aPoint;
	aPoint.x = 5;
	aPoint.y = 10;
	printf("Trying to change the string: '%s'\n", a);
	*a = 'd';
	printf("The new string is: '%s'\n", a);
	printf("Trying to change a part of theMap\n");

	theMap[convertPoint(aPoint)] = 'A';
	printf("Trying to print the new map \n");

	printf("%s\n", theMap);

	theMap[convertPoint(aPoint)] = '.';
	aPoint.y--;
	theMap[convertPoint(aPoint)] = 'A';
	aPoint.y++;
	while (aPoint.x > 0)
	{
		aPoint.x--;
		theMap[convertPoint(aPoint)] = '|';
	}

	printf("%s\n", theMap);
	return 0;
}
